package easing 
{
	/**
	 * ...
	 * @author carlor
	 */
	public class Circular 
	{
		
		public function Circular() 
		{
			
		}
		
		static public function easingIn(t: Number, b: Number, c: Number, d: Number): Number
		{
			t /= d;
			return -c * (Math.sqrt(1 - t * t) - 1) + b;
		}
		
		static public function easingOut(t: Number, b: Number, c: Number, d: Number): Number
		{
			t /= d;
			return -c * (Math.sqrt(1 - t * t) - 1) + b;
		}
		
		static public function easingInout(t: Number, b: Number, c: Number, d: Number): Number
		{
			t /= d / 2;
			if (t < 1) return -c / 2 * (Math.sqrt(1 - t * t) - 1) + b;
			t -= 2;
			return c / 2 * (Math.sqrt(1 - t * t) + 1) + b;
		}
	}

}